Integrand size = 23, antiderivative size = 116 \[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=-\frac {152 a^2 \cos (c+d x)}{105 d \sqrt {a+a \sin (c+d x)}}-\frac {38 a \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{105 d}+\frac {4 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{35 d}-\frac {2 \cos (c+d x) (a+a \sin (c+d x))^{5/2}}{7 a d} \]
4/35*cos(d*x+c)*(a+a*sin(d*x+c))^(3/2)/d-2/7*cos(d*x+c)*(a+a*sin(d*x+c))^( 5/2)/a/d-152/105*a^2*cos(d*x+c)/d/(a+a*sin(d*x+c))^(1/2)-38/105*a*cos(d*x+ c)*(a+a*sin(d*x+c))^(1/2)/d
Time = 1.57 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.25 \[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\frac {a \sec ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sin (c+d x))} \left (-735-910 \cos (c+d x)+832 \sqrt {2} \sqrt {1+\cos (c+d x)}-112 \cos (2 (c+d x))+78 \cos (3 (c+d x))+15 \cos (4 (c+d x))+560 \sin (c+d x)-238 \sin (2 (c+d x))-48 \sin (3 (c+d x))+15 \sin (4 (c+d x))\right )}{840 d \left (1+\tan \left (\frac {1}{2} (c+d x)\right )\right )} \]
(a*Sec[(c + d*x)/2]^2*Sqrt[a*(1 + Sin[c + d*x])]*(-735 - 910*Cos[c + d*x] + 832*Sqrt[2]*Sqrt[1 + Cos[c + d*x]] - 112*Cos[2*(c + d*x)] + 78*Cos[3*(c + d*x)] + 15*Cos[4*(c + d*x)] + 560*Sin[c + d*x] - 238*Sin[2*(c + d*x)] - 48*Sin[3*(c + d*x)] + 15*Sin[4*(c + d*x)]))/(840*d*(1 + Tan[(c + d*x)/2]))
Time = 0.53 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.13, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {3042, 3238, 27, 3042, 3230, 3042, 3126, 3042, 3125}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sin ^2(c+d x) (a \sin (c+d x)+a)^{3/2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin (c+d x)^2 (a \sin (c+d x)+a)^{3/2}dx\) |
\(\Big \downarrow \) 3238 |
\(\displaystyle \frac {2 \int \frac {1}{2} (5 a-2 a \sin (c+d x)) (\sin (c+d x) a+a)^{3/2}dx}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int (5 a-2 a \sin (c+d x)) (\sin (c+d x) a+a)^{3/2}dx}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int (5 a-2 a \sin (c+d x)) (\sin (c+d x) a+a)^{3/2}dx}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 3230 |
\(\displaystyle \frac {\frac {19}{5} a \int (\sin (c+d x) a+a)^{3/2}dx+\frac {4 a \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{5 d}}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {19}{5} a \int (\sin (c+d x) a+a)^{3/2}dx+\frac {4 a \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{5 d}}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 3126 |
\(\displaystyle \frac {\frac {19}{5} a \left (\frac {4}{3} a \int \sqrt {\sin (c+d x) a+a}dx-\frac {2 a \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{3 d}\right )+\frac {4 a \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{5 d}}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {19}{5} a \left (\frac {4}{3} a \int \sqrt {\sin (c+d x) a+a}dx-\frac {2 a \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{3 d}\right )+\frac {4 a \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{5 d}}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
\(\Big \downarrow \) 3125 |
\(\displaystyle \frac {\frac {19}{5} a \left (-\frac {8 a^2 \cos (c+d x)}{3 d \sqrt {a \sin (c+d x)+a}}-\frac {2 a \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{3 d}\right )+\frac {4 a \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{5 d}}{7 a}-\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{5/2}}{7 a d}\) |
(-2*Cos[c + d*x]*(a + a*Sin[c + d*x])^(5/2))/(7*a*d) + ((4*a*Cos[c + d*x]* (a + a*Sin[c + d*x])^(3/2))/(5*d) + (19*a*((-8*a^2*Cos[c + d*x])/(3*d*Sqrt [a + a*Sin[c + d*x]]) - (2*a*Cos[c + d*x]*Sqrt[a + a*Sin[c + d*x]])/(3*d)) )/5)/(7*a)
3.1.45.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[-2*b*(Cos [c + d*x]/(d*Sqrt[a + b*Sin[c + d*x]])), x] /; FreeQ[{a, b, c, d}, x] && Eq Q[a^2 - b^2, 0]
Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos [c + d*x]*((a + b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[a*((2*n - 1)/n) Int[(a + b*Sin[c + d*x])^(n - 1), x], x] /; FreeQ[{a, b, c, d}, x] && EqQ[ a^2 - b^2, 0] && IGtQ[n - 1/2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d)*Cos[e + f*x]*((a + b*Sin[e + f*x])^m/( f*(m + 1))), x] + Simp[(a*d*m + b*c*(m + 1))/(b*(m + 1)) Int[(a + b*Sin[e + f*x])^m, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && !LtQ[m, -2^(-1)]
Int[sin[(e_.) + (f_.)*(x_)]^2*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(-Cos[e + f*x])*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2 ))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*(b*(m + 1) - a*Si n[e + f*x]), x], x] /; FreeQ[{a, b, e, f, m}, x] && EqQ[a^2 - b^2, 0] && ! LtQ[m, -2^(-1)]
Time = 0.48 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.65
method | result | size |
default | \(\frac {2 \left (1+\sin \left (d x +c \right )\right ) a^{2} \left (\sin \left (d x +c \right )-1\right ) \left (15 \left (\sin ^{3}\left (d x +c \right )\right )+39 \left (\sin ^{2}\left (d x +c \right )\right )+52 \sin \left (d x +c \right )+104\right )}{105 \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(75\) |
2/105*(1+sin(d*x+c))*a^2*(sin(d*x+c)-1)*(15*sin(d*x+c)^3+39*sin(d*x+c)^2+5 2*sin(d*x+c)+104)/cos(d*x+c)/(a+a*sin(d*x+c))^(1/2)/d
Time = 0.27 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.05 \[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\frac {2 \, {\left (15 \, a \cos \left (d x + c\right )^{4} + 39 \, a \cos \left (d x + c\right )^{3} - 43 \, a \cos \left (d x + c\right )^{2} - 143 \, a \cos \left (d x + c\right ) + {\left (15 \, a \cos \left (d x + c\right )^{3} - 24 \, a \cos \left (d x + c\right )^{2} - 67 \, a \cos \left (d x + c\right ) + 76 \, a\right )} \sin \left (d x + c\right ) - 76 \, a\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{105 \, {\left (d \cos \left (d x + c\right ) + d \sin \left (d x + c\right ) + d\right )}} \]
2/105*(15*a*cos(d*x + c)^4 + 39*a*cos(d*x + c)^3 - 43*a*cos(d*x + c)^2 - 1 43*a*cos(d*x + c) + (15*a*cos(d*x + c)^3 - 24*a*cos(d*x + c)^2 - 67*a*cos( d*x + c) + 76*a)*sin(d*x + c) - 76*a)*sqrt(a*sin(d*x + c) + a)/(d*cos(d*x + c) + d*sin(d*x + c) + d)
\[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\int \left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}} \sin ^{2}{\left (c + d x \right )}\, dx \]
\[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\int { {\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sin \left (d x + c\right )^{2} \,d x } \]
Time = 0.55 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.07 \[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\frac {\sqrt {2} {\left (735 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 175 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 63 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {5}{4} \, \pi + \frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 15 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {7}{4} \, \pi + \frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )} \sqrt {a}}{420 \, d} \]
1/420*sqrt(2)*(735*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-1/4*pi + 1/2 *d*x + 1/2*c) + 175*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-3/4*pi + 3/ 2*d*x + 3/2*c) + 63*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-5/4*pi + 5/ 2*d*x + 5/2*c) + 15*a*sgn(cos(-1/4*pi + 1/2*d*x + 1/2*c))*sin(-7/4*pi + 7/ 2*d*x + 7/2*c))*sqrt(a)/d
Timed out. \[ \int \sin ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx=\int {\sin \left (c+d\,x\right )}^2\,{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2} \,d x \]